package com.example.demo.service.impl;

import com.example.demo.entity.Recharge;
import com.example.demo.entity.Recharge1;
import com.example.demo.mapper.RechargeMapper;
import com.example.demo.service.RechargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RechargeServiceImpl implements RechargeService {
    @Autowired
    RechargeMapper rechargeMapper;

    @Override
    public void insertRecharge(Recharge recharge) {
        rechargeMapper.insertRecharge(recharge);
    }

    @Override
    public List<Recharge> selectRecharge() {
        return rechargeMapper.selectRecharge();
    }

    @Override
    public List<Recharge> selectRecharge1(String id) {
        return rechargeMapper.selectRecharge1(id);
    }

    @Override
    public void deleteRecharge(String id) {
        rechargeMapper.deleteRecharge(id);
    }

    @Override
    public List<Recharge1> selectRechargeByY(String id) {
        return rechargeMapper.selectRechargeByY(id);
    }

    @Override
    public List<Recharge1> selectRechargeByD(String id) {
        return rechargeMapper.selectRechargeByD(id);
    }
}
